- entry_type: ghost_instrumentation
  metadata:
    format_version: "2.0"
    uuid: b8adeded-8692-4820-8da6-00942f275766
    creation_time: 2025-05-28T12:16:06Z
    producer:
      name: Goblint
      version: heads/master-0-gb8fb60e5d-dirty
      command_line: '''./goblint'' ''--conf'' ''conf/svcomp-ghost.json'' ''--set''
        ''ana.base.privatization'' ''protection-read'' ''--set'' ''ana.autotune.activated[-]''
        ''octagon'' ''--sets'' ''ana.specification'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/properties/unreach-call.prp''
        ''--sets'' ''exp.architecture'' ''32bit'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i: 7cc273f13a619f37768d5108c297b75ab7c37145fe391daced9c134730721251
      data_model: ILP32
      language: C
      specification: CHECK( init(main()), LTL(G ! call(reach_error())) )
  content:
    ghost_variables:
    - name: m_locked
      scope: global
      type: int
      initial:
        value: "0"
        format: c_expression
    - name: multithreaded
      scope: global
      type: int
      initial:
        value: "0"
        format: c_expression
    ghost_updates:
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i
        line: 1052
        column: 3
        function: main
      updates:
      - variable: multithreaded
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i
        line: 1039
        column: 3
        function: t2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i
        line: 1026
        column: 3
        function: t2
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i
        line: 1020
        column: 3
        function: t1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i
        line: 1008
        column: 3
        function: t1
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
- entry_type: invariant_set
  metadata:
    format_version: "2.0"
    uuid: f4d44a75-a407-4534-b63f-2f2b0a0e7cb3
    creation_time: 2025-05-28T12:16:06Z
    producer:
      name: Goblint
      version: heads/master-0-gb8fb60e5d-dirty
      command_line: '''./goblint'' ''--conf'' ''conf/svcomp-ghost.json'' ''--set''
        ''ana.base.privatization'' ''protection-read'' ''--set'' ''ana.autotune.activated[-]''
        ''octagon'' ''--sets'' ''ana.specification'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/properties/unreach-call.prp''
        ''--sets'' ''exp.architecture'' ''32bit'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i: 7cc273f13a619f37768d5108c297b75ab7c37145fe391daced9c134730721251
      data_model: ILP32
      language: C
      specification: CHECK( init(main()), LTL(G ! call(reach_error())) )
  content:
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i
        line: 1053
        column: 3
        function: main
      value: '! multithreaded || (m_locked || ((0 <= queue.head && queue.head <= 20)
        && (queue.tail == 0 || queue.tail == 20)))'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i
        line: 1054
        column: 3
        function: main
      value: '! multithreaded || (m_locked || ((0 <= queue.head && queue.head <= 20)
        && (queue.tail == 0 || queue.tail == 20)))'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i
        line: 1053
        column: 3
        function: main
      value: '! multithreaded || ((0 <= queue.head && queue.head <= 20) && ((((((((((((((((((((queue.tail
        == 0 || queue.tail == 1) || queue.tail == 2) || queue.tail == 3) || queue.tail
        == 4) || queue.tail == 5) || queue.tail == 6) || queue.tail == 7) || queue.tail
        == 8) || queue.tail == 9) || queue.tail == 10) || queue.tail == 11) || queue.tail
        == 12) || queue.tail == 13) || queue.tail == 14) || queue.tail == 15) || queue.tail
        == 16) || queue.tail == 17) || queue.tail == 18) || queue.tail == 19) || queue.tail
        == 20))'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i
        line: 1054
        column: 3
        function: main
      value: '! multithreaded || ((0 <= queue.head && queue.head <= 20) && ((((((((((((((((((((queue.tail
        == 0 || queue.tail == 1) || queue.tail == 2) || queue.tail == 3) || queue.tail
        == 4) || queue.tail == 5) || queue.tail == 6) || queue.tail == 7) || queue.tail
        == 8) || queue.tail == 9) || queue.tail == 10) || queue.tail == 11) || queue.tail
        == 12) || queue.tail == 13) || queue.tail == 14) || queue.tail == 15) || queue.tail
        == 16) || queue.tail == 17) || queue.tail == 18) || queue.tail == 19) || queue.tail
        == 20))'
      format: c_expression
